package org.javaboy.sms_service.consumer;

import org.javaboy.sms_service.config.RabbitConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class SmsConsumer {

    @RabbitListener(queues = RabbitConfig.SEND_SMS_QUEUE)
    public void sendSms(String content) {
        System.out.println("发送短信：" + content);
    }
}
